<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html">
    <head>
        <title>Update something in a Sales Order</title>
    </head>

    <body>
    <h:form id="UpdateSalesOrderStatus">
        <h:panelGrid columns="2">
            <h:outputText value="ID: " />
            <h:inputText required="true" requiredMessage="Field is required." id="salesOrderId" value="#{salesOrderBean.salesOrderId}" />
            
            <h:outputText value="New Sales Order Status: " />
            <h:inputText required="true" requiredMessage="Field is required." id="status" value="#{salesOrderBean.status}" />
            <h:commandButton action="index.xhtml" value="Save" actionListener="#{salesOrderBean.updateSalesOrderStatus}" />
        </h:panelGrid>
        <p></p><h:commandLink action="index.xhtml" value="Return back to Index page"/>
    </h:form>
</body>
</ui:composition>
